package com.yonyou.cyxdms.sysAuth.service.dto.authorization;

import com.yonyou.cyx.function.utils.validate.define.Required;
import com.yonyou.cyxdms.sysAuth.service.dto.manage.OrganizationDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.role.RoleDTO;

import java.util.List;

/**
 * @author ：quankk
 * @date ：Created in 2019/7/18 18:57
 * @description： 职位dto
 */
public class AuthOrgPositionDTO {
    private Integer positionId;
    @Required
    private String positionCode;

    @Required
    private String positionName;

    private String positionDesc;

    private Integer isValid;

    private Integer dataSource;

    private Integer dataType;

    private List<OrganizationDTO> departGmsList;//组织列表

    private List<RoleDTO> roleGmsSelectList;//角色列表

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public String getPositionCode() {
        return positionCode;
    }

    public void setPositionCode(String positionCode) {
        this.positionCode = positionCode;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getPositionDesc() {
        return positionDesc;
    }

    public void setPositionDesc(String positionDesc) {
        this.positionDesc = positionDesc;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getDataSource() {
        return dataSource;
    }

    public void setDataSource(Integer dataSource) {
        this.dataSource = dataSource;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public List<OrganizationDTO> getDepartGmsList() {
        return departGmsList;
    }

    public void setDepartGmsList(List<OrganizationDTO> departGmsList) {
        this.departGmsList = departGmsList;
    }

    public List<RoleDTO> getRoleGmsSelectList() {
        return roleGmsSelectList;
    }

    public void setRoleGmsSelectList(List<RoleDTO> roleGmsSelectList) {
        this.roleGmsSelectList = roleGmsSelectList;
    }

    @Override
    public String toString() {
        return "AuthOrgPositionDTO{" +
                "positionId=" + positionId +
                ", positionCode='" + positionCode + '\'' +
                ", positionName='" + positionName + '\'' +
                ", positionDesc='" + positionDesc + '\'' +
                ", isValid=" + isValid +
                ", dataSource=" + dataSource +
                ", dataType=" + dataType +
                ", departGmsList=" + departGmsList +
                ", roleGmsSelectList=" + roleGmsSelectList +
                '}';
    }
}
